package com.spring.demo12.eg2;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author vhans
 */
public class Test {
    // 使用spring事务处理
    @org.junit.Test
    public void test() {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MainConfig1.class);
        OrderCreateService orderCreateService = context.getBean(OrderCreateService.class);
        orderCreateService.orderCreate(100L);
    }
}
